package com.yeyks.common.appcommon.param.finance;

import com.yeyks.common.appcommon.result.CommonAuthHeader;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: dagny
 * @date: 2019/7/19 0019 14:30
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "发送验证码参数")
@Data
public class SendCodeParam extends CommonAuthHeader implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "短信类型[0.登录注册验证码，1.提现验证码，2.绑定账户验证码]",allowableValues = "0,1,2")
    @NotNull(message = "短信类型不能为空")
    private Integer type;

}
